package com.xf.system.http.req.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * @author xiefengf
 */
@ApiModel(description = "新增部门入参")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class DeptAddReqDTO {

    @Schema(description = "父部门id")
    @NotNull(message = "父部门id不能为空")
    private Long parentId;

    @Schema(description = "部门名称")
    @NotBlank(message = "部门名称不能为空")
    private String deptName;

    @Schema(description = "显示顺序")
    @NotNull(message = "显示顺序不能为空")
    private Integer orderNum;

    @Schema(description = "负责人")
    private String leader;

    @Schema(description = "联系电话")
    private String phoneNumber;

    @Schema(description = "邮箱")
    @Email(message = "用户邮箱格式不正确")
    private String email;

    @Schema(description = "部门状态（0正常 1停用）")
    private String status;

}
